package com.ruoyi.system.mapper.webgroupmapper;

import com.ruoyi.system.domain.webgroup.Clock;
import com.ruoyi.system.domain.webgroup.DailyList;
import com.ruoyi.system.domain.webgroup.GeneralList;
import com.ruoyi.system.domain.webgroup.WeeklyList;
import org.apache.ibatis.annotations.Param;

import java.sql.Time;
import java.util.Date;
import java.util.List;

public interface ClockMapper {
    List<Clock> selectClockAll(Clock clock);

    Clock getClock(Integer clockId);

    int deleteClock(Integer[] clockIds);

    void postClock(Clock clock);

    int putClock(Clock clock);

    //这个使用了arg0 和 arg1 可以使用@Param
    Integer getClockState(@Param("userId") Integer userId, @Param("clockDatetime") Date clockDatetime);

    Date getClockDatetime(Integer userId);

    Time getTimeDiff(@Param("d1") Date d1,@Param("d2") Date d2);

    //这个使用了arg0 和 arg1 可以使用@Param
    Integer selectDailyList(@Param("date") String dateString, @Param("userId") Integer userId);

    void insertIntoDailyList(DailyList dailyList);

    //这个使用了arg0 和 arg1 可以使用@Param
    void insertIntoDailyListById(@Param("dailyListId") Integer dailyListId, @Param("timeDiff") Time timeDiff);









    Integer selectGeneralList(Integer userId);

    void insertIntoGeneralList(GeneralList generalList);

    void updateGeneralList(@Param("generalListId") Integer generalListId, @Param("timeDiff") Time timeDiff);

    Integer selectWeeklyList(@Param("userId") Integer userId);

    void insertIntoWeeklyListById(WeeklyList weeklyList);

    void updateWeeklyList(@Param("weeklyListId")Integer weeklyListId,@Param("timeDiff") Time timeDiff);

    List<DailyList> selectDailyListList(DailyList dailyList);

    List<WeeklyList> selectWeeklyListList(WeeklyList weeklyList);

    List<GeneralList> selectGeneralListList(GeneralList generalList);

    int deleteWebDailyListByDailyListIds(Integer[] dailyListIds);

    int insertWebDailyList(DailyList dailyList);

    DailyList selectWebDailyListByDailyListId(Integer dailyListId);

    GeneralList selectWebGeneralListByGeneralListId(Integer generalListId);

    int insertWebGeneralList(GeneralList generalList);

    int updateWebGeneralList(GeneralList generalList);


    int deleteWebGeneralListByGeneralListIds(Integer[] generalListIds);
}
